package com.shaobufan.museum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shaobufan.museum.pojo.entity.CollectionsExhibit;
import com.shaobufan.museum.pojo.vo.CollectionsVo;

import java.util.List;

/**
 * @author 17126
 * @description 针对表【collections_exhibit(藏品-展览 中间表)】的数据库操作Service
 * @createDate 2024-04-07 11:09:50
 */
public interface CollectionsExhibitService extends IService<CollectionsExhibit> {

    /**
     * 根据展览 id查询展出的藏品
     *
     * @param exId 展览 id
     * @return List<CollectionsVo>
     */
    List<CollectionsVo> searchCollectionsExhibit(Integer exId);

    /**
     * 添加 出展藏品
     *
     * @param exId         展览 id
     * @param collectionId 藏品 id
     * @return Boolean
     */
    Boolean addCollectionsExhibit(Integer exId, Integer collectionId);

    /**
     * 删除 出展藏品
     *
     * @param exId         展览 id
     * @param collectionId 藏品 id
     * @return Boolean
     */
    Boolean removeCollectionsExhibit(Integer exId, Integer collectionId);
}
